pkgname=vdr-rssreader
pkgver=1.0.1
pkgrel=1
arch=('i686')
pkgdesc="A VDR plugin that shows RSS feeds using OSD"
url="http://www.saunalahti.fi/~rahrenbe/vdr/rssreader/"
license=('GPL')
depends=('vdr' 'gcc' 'curl' 'expat')
source=(http://www.saunalahti.fi/~rahrenbe/vdr/rssreader/files/$pkgname-$pkgver.tgz)
md5sums=('4fcaf569dadaa01f599431f79b80dd87')

build() {
  cd $startdir/src/rssreader-$pkgver

  sed -i \
	 -e 's:@cp $@ :install -D -m 755 $@ $(DESTDIR):' \
	 Makefile
  make VDRDIR=/usr/include/vdr LIBDIR=/usr/lib/vdr DESTDIR=$startdir/pkg all || return 1

  install -m 644 -D example/rssreader.conf $startdir/pkg/etc/vdr/plugins/rssreader.conf
  chown -R vdr.video $startdir/pkg/etc/vdr
}
